package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.MsgInspectionDtoMapper;
import com.ruoyi.system.domain.MsgInspectionDto;
import com.ruoyi.system.service.IMsgInspectionDtoService;
import com.ruoyi.common.core.text.Convert;

/**
 * 巡查台账Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-02-18
 */
@Service
public class MsgInspectionDtoServiceImpl implements IMsgInspectionDtoService 
{
    @Autowired
    private MsgInspectionDtoMapper msgInspectionDtoMapper;

    /**
     * 查询巡查台账
     * 
     * @param pkid 巡查台账ID
     * @return 巡查台账
     */
    @Override
    public MsgInspectionDto selectMsgInspectionDtoById(Integer pkid)
    {
        return msgInspectionDtoMapper.selectMsgInspectionDtoById(pkid);
    }

    /**
     * 查询巡查台账列表
     * 
     * @param msgInspectionDto 巡查台账
     * @return 巡查台账
     */
    @Override
    public List<MsgInspectionDto> selectMsgInspectionDtoList(MsgInspectionDto msgInspectionDto)
    {
        return msgInspectionDtoMapper.selectMsgInspectionDtoList(msgInspectionDto);
    }

    /**
     * 新增巡查台账
     * 
     * @param msgInspectionDto 巡查台账
     * @return 结果
     */
    @Override
    public int insertMsgInspectionDto(MsgInspectionDto msgInspectionDto)
    {
        return msgInspectionDtoMapper.insertMsgInspectionDto(msgInspectionDto);
    }

    /**
     * 修改巡查台账
     * 
     * @param msgInspectionDto 巡查台账
     * @return 结果
     */
    @Override
    public int updateMsgInspectionDto(MsgInspectionDto msgInspectionDto)
    {
        return msgInspectionDtoMapper.updateMsgInspectionDto(msgInspectionDto);
    }

    /**
     * 删除巡查台账对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteMsgInspectionDtoByIds(String ids)
    {
        return msgInspectionDtoMapper.deleteMsgInspectionDtoByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除巡查台账信息
     * 
     * @param pkid 巡查台账ID
     * @return 结果
     */
    @Override
    public int deleteMsgInspectionDtoById(Integer pkid)
    {
        return msgInspectionDtoMapper.deleteMsgInspectionDtoById(pkid);
    }
}
